package com.wyfx.blockchain.utils;

/**
 * @Description
 * @Auther: wsm
 * @Date: 2020/9/8 11:17
 */
public class CommonUtils {

    /**
     * @desc 生成url
 * @param ip
 * @param port
 * @param method
     * @Return java.lang.String
     * @Author wsm
     * @date 2020/9/8 11:19
     */
    public static String generateUrl(String ip,int port,String method){
        StringBuffer stringBuffer=new StringBuffer("http://");
        stringBuffer.append(ip);
        stringBuffer.append(":");
        stringBuffer.append(port+"/"+method);
        return stringBuffer.toString();
    }
}
